package com.hunter.api.help.result;

import com.alibaba.fastjson.JSONObject;

/**
 * @author HunterHuang
 * @version 1.0
 * @ClassName ErrorHelp
 * @date 2019/6/1 16:11
 */
public class ErrorHelp {
    //10100-10199 token方面错误
    public static JSONObject TOKEN_OUT_ERROR = JSONObject.parseObject("{\"msg\":\"token超时\",\"code\":10101,\"data\":{}}");
    public static JSONObject TOKEN_GET_FAILED = JSONObject.parseObject("{\"msg\":\"token获取失败\",\"code\":10102,\"data\":{}}");
    public static JSONObject TOKEN_NOT_EXIST = JSONObject.parseObject("{\"msg\":\"token不存在\",\"code\":10103,\"data\":{}}");
    public static JSONObject TOKEN_ERROR = JSONObject.parseObject("{\"msg\":\"token错误\",\"code\":10104,\"data\":{}}");
    //10200-10299 用户方面错误
    public static JSONObject USER_NOT_EXISTS = JSONObject.parseObject("{\"msg\":\"用户名或密码错误\",\"code\":10201,\"data\":{}}");
    public static JSONObject USER_NOT_NULL = JSONObject.parseObject("{\"msg\":\"用户名和密码不允许为空\",\"code\":10207,\"data\":{}}");
    public static JSONObject USERNAME_EXISTS = JSONObject.parseObject("{\"msg\":\"用户名或者手机号已注册,请直接登录\",\"code\":10203,\"data\":{}}");


    //11000-11099 Config or SQL方面错误
    public static JSONObject SQL_ERROR = JSONObject.parseObject("{\"msg\":\"sql error\",\"code\":11000,\"data\":{}}");
    public static JSONObject COMFIG_SQL_ERROR = JSONObject.parseObject("{\"msg\":\"config error sql\",\"code\":11001,\"data\":{}}");
    public static JSONObject SQL_TYPE_ERROR = JSONObject.parseObject("{\"msg\":\"invalid sql type \",\"code\":11002,\"data\":{}}");
    public static JSONObject SQL_MODEL_ERROR = JSONObject.parseObject("{\"msg\":\"invalid sql type \",\"code\":11003,\"data\":{}}");
    public static JSONObject SQL_NOT_UNIQUE = JSONObject.parseObject("{\"msg\":\"已有重复项了 \",\"code\":11004,\"data\":{}}");
    //12000-12099 ENTITY方面错误
    public static JSONObject ENTITY_NOT_EXISTS = JSONObject.parseObject("{\"msg\":\"ENTITY不存在\",\"code\":12001,\"data\":{}}");

    //12100-12199 复杂sql模板方面错误
    public static JSONObject SQL_NOT_EXISTS = JSONObject.parseObject("{\"msg\":\"SQL不存在\",\"code\":12101,\"data\":{}}");


    public static JSONObject UPLOAD_FAILED = JSONObject.parseObject("{\"msg\":\"上传失败\",\"code\":13101,\"data\":{}}");
    public static JSONObject FILE_NOT_EXIST = JSONObject.parseObject("{\"msg\":\"文件不存在\",\"code\":13102,\"data\":{}}");
    public static JSONObject DELETE_FAILED = JSONObject.parseObject("{\"msg\":\"文件删除失败\",\"code\":13103,\"data\":{}}");

    //14000-14099 微信方面错误
    public static JSONObject GET_OPEN_ID_FAILED = JSONObject.parseObject("{\"msg\":\"获取open_id失败\",\"code\":14001,\"data\":{}}");

    public static JSONObject GET_SHA1HEX_FAILED = JSONObject.parseObject("{\"msg\":\"获取sha1Hex签名失败\",\"code\":14001,\"data\":{}}");

    public static JSONObject SEND_FAILED = JSONObject.parseObject("{\"msg\":\"发送短信失败\",\"code\":15001,\"data\":{}}");

}


